<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>${comment}</title>
 <%@ include file="/page/include.jsp" %>
</head>
<body class="nav-md" style="background-color: #f7f7f7">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" style="min-height: 100%;" role="main">
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<div class="x_panel">
							<div class="x_content">
								<form class="form-horizontal form-label-left" novalidate id="${sclazz}Form"  method="post" action="${r"${pageContext.request.contextPath}"}/${sclazz}/saveOrUpdate${bclazz}">
									<input type="hidden"  id="id" name="id" value="${r"${"}${sclazz}.id }" >
									<#list collist as col>
										<#if col.showForm == 'y'>
											<#if col.conditionType == 'input'>
											<div class="item form-group">
												<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName">${col.colCom}: <#if col.nullFlag == "0"><span class="required"><font color="red">*</font></span></#if>
												</label>
												<div class="col-md-3 col-sm-3 col-xs-12">
													<input id="${col.propertyName}" name="${col.propertyName}" value="${r"${"}${sclazz}.${col.propertyName} }" class="form-control col-md-3 col-xs-12"  type="text">
												</div>
											</div>
						 					</#if>
											<#if col.conditionType == 'dropdown'>
											<div class="item form-group">
												<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName">${col.colCom}: <#if col.nullFlag == "0"><span class="required"><font color="red">*</font></span></#if>
												</label>
												<div class="col-md-3 col-sm-3 col-xs-12">
													<select class="selectpicker form-control col-md-12" id="${col.propertyName}">
														<option value="">全部</option>
													</select>  
												</div>
											</div>
											</#if>
										</#if>
									</#list> 
								</form>
								<div class="ln_solid"></div>
								<div class="form-btn-content">
									<a id="btn_save" class="btn btn-primary">确定</a>
									<a id="btn_back"class="btn btn-default">返回</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript"  src="${r"${rootPath}"}/js/${module}/${sclazz}_form.js"></script>
</html>